package com.fan.service.Impl;

import com.fan.dao.PayLogDao;
import com.fan.entity.Order;
import com.fan.entity.PayLog;
import com.fan.service.PayLogService;
import com.sixth.until.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-04-20 19:24
 **/
@Service
public class PayLogServiceImpl implements PayLogService {
    @Autowired
    private PayLogDao payLogDao;


    @Override
    public CommonResult queryOrderAndPayLog(String id) {
       List<Order> payId = payLogDao.payLogOrderNo(id);
        return new CommonResult(2000,"查询成功",payId);
    }
}
